//
//  ZXLSignEntity.m
//  SignSecurityDemo
//
//  Created by zxl02 on 2020/8/24.
//  Copyright © 2020 CordovaDemo. All rights reserved.
//

#import "ZXLSignEntity.h"
#import "ZXLSecurityClient.h"
#import "ZXLSignTools.h"

@implementation ZXLSignEntity


@end


@implementation ZXLAPISignEntity

-(NSString*)getAPIStrToSigin{

    NSString * bodystr = [ZXLSignTools  getStringWithDic:(NSMutableDictionary*)self.body];
    NSString * strTosign= [NSString stringWithFormat:@"%@\n%@\n%@",self.uri,bodystr, SecurityClientConfig.SK];
    
    strTosign = [NSString stringWithFormat:@"%@+\n+%@+\n+%@+\n+%@+\n+%@+\n+%@+\n+%@",strTosign,self.timestamp,self.nonce,self.version,SecurityClientConfig.appKey,self.platform,SecurityClientConfig.SK];
    
    return self.StringToSign;
}

@end

@implementation SignResult

@end
